package com.weikuang.fareast.adapter;

import com.weikuang.fareast.R;
import com.weikuang.fareast.bean.CheckBean;

import cn.dlc.commonlibrary.ui.adapter.BaseRecyclerAdapter;


/**
 * 审核查询详情
 */
public class CheckQueryDetailsAdapter extends BaseRecyclerAdapter<CheckBean> {
    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_check_query_details;
    }

    public CheckQueryDetailsAdapter() {

    }

    @Override
    public void onBindViewHolder(CommonHolder holder, int position) {
        CheckBean bean = getItem(position);

        holder.getText(R.id.offic).setText(bean.offic);
        holder.getText(R.id.hospital).setText(bean.hospital);
        holder.getText(R.id.name).setText(bean.name);
        holder.getText(R.id.fold_nums).setText(bean.fold_nums);
        holder.getText(R.id.ed_num).setText(bean.nums+"");
        holder.getText(R.id.ed_num_loss).setText(bean.num_loss+"");
        holder.getText(R.id.ed_num_backs).setText(bean.backs+"");
        if (bean.status == 0) {
            holder.getText(R.id.check_status).setText("未审核");
        }else {
            holder.getText(R.id.check_status).setText("已审核");
        }

    }

}
